Script: --on windowEvent wdID,wdName,objNo,objName,objValue¬global gWindowPositions¬global gPublisherList¬¬---------------------¬-- This is window #10¬---------------------¬¬if objValue="Open" then ¬ ¬ -- Restore old window position¬ put OldWindowPosition(10) into windowRect¬ if windowRect = empty then centerWindow wdName¬ else wsSet wdID,"0","Rect",windowRect¬ ¬ wsSet wdID,"PublisherList","Text",gPublisherList¬ get "Remove_Disabled:True" & return & "Publisher_Disabled:True" & return & "Copyright_Disabled:True" & return & "NameLabel_Disabled:True" & return & "CopyrightLabel_Disabled:True" & return¬ wsSet wdID,0,"Properties",it¬ ¬else if objValue="Close" then ¬ -- save the window position¬ put "10" & tab & wdName & tab & wsGet(wdID,"0","Rect") into line 10 of gWindowPositions¬ ¬else if objValue="Suspend" then ¬ ¬else if objValue="Resume" then ¬ ¬else if objValue="CloseBox" then ¬ ¬else if objValue="ZoomBox" then ¬ ¬else if objValue="GrowBox" then ¬ ¬else if objValue="TitleBar" then ¬ ¬end if¬¬--end windowEvent
ItemType: PUSH
Rect: 419,218,499,238
AutoSize: FALSE
Name: Save
AutoClose: TRUE
Balloon: Click here to save your changes.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬global gPublisherList¬¬put wsGet(wdID,"PublisherList","Text") into gPublisherList¬repeat with x = the number of lines of gPublisherList down to 1¬ if word 1 of line x of gPublisherList = empty then delete line x of gPublisherList¬end repeat¬if the last char of gPublisherList = return then delete the last char of gPublisherList¬--end mouseUp¬¬¬
ItemType: PUSH
Rect: 329,218,409,238
Name: Cancel
CancelItem: TRUE
AutoClose: TRUE
Balloon: Click here to exit without saving your changes.
Balloon: This is the list of the publishers you’ve set up, along with each one’s usual copyright notice. The publishers listed here will appear in the Publisher pop-up menu when you modify or create a title.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬put wsGet(wdID,"PublisherList","Selection") into PublisherLine¬put wsGet(wdID,"PublisherList","Text") into PublisherList¬put line PublisherLine of PublisherList into theLine¬if word 1 of theLine <> empty then¬ set the itemDelimiter to tab¬ put item 1 of theLine into thePublisherName¬ put item 2 of theLine into theCopyright¬ put "Publisher_Selection:0,100" & return into theSelection¬ ¬ get "Remove_Disabled:False" & return & "Publisher_Disabled:False" & return & "Copyright_Disabled:false" & return & "NameLabel_Disabled:False" & return & "CopyrightLabel_Disabled:False" & return & "Publisher_Text:" & thePublisherName & return & "Copyright_Text:" & theCopyright & return¬else¬ put "Publisher_Selection:0,0" into theSelection¬ get "Publisher_Disabled:True" & return & "Copyright_Disabled:True" & return & "Remove_Disabled:True" & return & "NameLabel_Disabled:True" & return & "CopyrightLabel_Disabled:True" & return & "Publisher_Text:" & return & "Copyright_Text:" & return¬ ¬end if¬wsSet wdID,"0", "Properties", it & theSelection¬--end mouseUp
Balloon: Enter the most common copyright/trademark notice for this publisher here. This will be used as the default copyright when you create a new title by this publisher.
Script: --on closeField wdID,wdName,objNo,objName,objValue¬put wsGet(wdID,"PublisherList","Selection") into thePublisherLine¬put wsGet(wdID,"Copyright","Text") into Copyright¬put wsGet(wdID,"PublisherList","Text") into thePublisherList¬¬set the itemDelimiter to tab¬put line thePublisherLine of thePublisherList into theLine¬put (item 1 of theLine) & tab & Copyright into line thePublisherLine of thePublisherList¬wsSet wdID,"PublisherList","Text", thePublisherList¬wsSet wdID,"PublisherList","Selection", thePublisherLine¬--end closeField¬¬
ItemType: TEXT
Rect: 310,31,402,43
TextFont: Geneva
TextSize: 9
Disabled: TRUE
Name: NameLabel
WhiteColor: -26215,-13108,-1
TextStyle: Bold
Text: Publisher Name:
ItemType: TEXT
Rect: 310,70,443,82
TextFont: Geneva
TextSize: 9
Disabled: TRUE
Name: CopyrightLabel
WhiteColor: -26215,-13108,-1
TextStyle: Bold
Text: Usual Copyright Notice:
ItemType: PUSH
Rect: 102,218,182,238
Name: New N
Balloon: Click here to add a new publisher to the list.
Balloon: Click here to remove the selected publisher from the list.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬put wsGet(wdID,"PublisherList","Selection") into theLine¬put wsGet(wdID,"PublisherList","Text") into theList¬delete line theLine of theList¬¬wsSet wdID,"PublisherList","Text",theList¬¬set the itemDelimiter to tab¬put item 1 of line theLine of theList into thePublisher¬put item 2 of line theLine of theList into Copyright¬get "PublisherList_Selection:" & theLine & return & "Publisher_Text:" & thePublisher & return & "Copyright_Text:" & Copyright & return ¬¬if word 1 of line theLine of theList = empty then¬ put "Remove_Disabled:True" & return & "NameLabel_Disabled:True" & return & "CopyrightLabel_Disabled:True" & return & "Publisher_Disabled:True" & return & "Copyright_Disabled:True" & return after it¬else¬ put "Remove_Disabled:False" & return & "Publisher_Selection:0,100" & return after it¬end if¬¬wsSet wdID,"0", "Properties", it¬--end mouseUp¬